package cn.stylefeng.guns.sys.modular.cleanRule.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.cleanRule.entity.CleanRule;
import cn.stylefeng.guns.sys.modular.cleanRule.model.params.CleanRuleParam;
import cn.stylefeng.guns.sys.modular.cleanRule.model.result.CleanRuleResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 数据清洗规则表 服务类
 * </p>
 *
 * @author author
 * @since 2020-11-16
 */
public interface CleanRuleService extends IService<CleanRule> {

    /**
     * 新增
     *
     * @author author
     * @Date 2020-11-16
     */
    void add(CleanRuleParam param);

    /**
     * 删除
     *
     * @author author
     * @Date 2020-11-16
     */
    void delete(CleanRuleParam param);

    /**
     * 更新
     *
     * @author author
     * @Date 2020-11-16
     */
    void update(CleanRuleParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author author
     * @Date 2020-11-16
     */
    CleanRuleResult findBySpec(CleanRuleParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author author
     * @Date 2020-11-16
     */
    List<CleanRuleResult> findListBySpec(CleanRuleParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author author
     * @Date 2020-11-16
     */
    LayuiPageInfo findPageBySpec(CleanRuleParam param);


    /**
     * 逻辑删除
     *
     * @param id
     * @return
     */
    void deleteCleanRuleInfo(Integer id);

}
